//
//  BeanWebService.m
//  YYZB
//
//  Created by 顾悦 on 16/3/28.
//
//

#import "BeanWebService.h"

@implementation BeanWebService

- (void)collectBeansCompletionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder {
    NSString *URL = @"Customer/AddSignInBean";
    NSDictionary *params = @{};
    NSString *URLString = [self formattedURLString:params method:URL sessionNeeded:NO];
    [self sendHTTPGetRequest:URLString completionHandler:^(id result, NSError *error) {
        if (error != nil) {
            completionHanlder(nil, error);
        } else {
            NSError *err;
            NSArray *items = @[result];//[self unboxedValue:result error:&err];
            completionHanlder(items, err);
        }
    }];
}

@end
